import Vue from 'vue'
import App from './App.vue'
import './plugins/element.js'

//1.在 main.js 中导入路由模块
import router from './router/index'
import store from './store'

Vue.config.productionTip = false

//导入样式初始化
import 'normalize.css'
import '@/assets/css/base.css'

//swiper
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/css/swiper.css'
// 引入 Swiper 组件
import { Swiper, SwiperSlide } from 'vue-awesome-swiper'

Vue.use(VueAwesomeSwiper)
Vue.component('MySwiper', Swiper)
Vue.component('MySwiperSlide', SwiperSlide)

//导入请求方法
import api from './api/index'
Vue.prototype.$api = api;

new Vue({
  render: h => h(App),
  router,
  store
}).$mount('#app')
